﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using VotingSystem.Poll.Controls;

namespace VotingSystem
{
    public partial class balva : System.Web.UI.Page
    {
        //PollManager pm;
        protected void Page_Load(object sender, EventArgs e)
        {
            //pm = new PollManager(Server.MapPath("~/App_Data/Poll.xml"));
            //foreach (Question q in pm.Questions.Where(func => func.Active == true))
            //{
            //    Literal l1 = new Literal();
            //    Literal l2 = new Literal();
            //    l1.Text = "<div class=\"left_column\"><div class=\"main_left_top\" ></div><div class=\"main_left_bottom\" ></div><div class=\"main_right_bottom\" /></div><div class=\"main_right_top\" /></div>";
            //    l2.Text = "</div>";
            //    ctrlPoll poll = (ctrlPoll)LoadControl("~/Poll/Controls/ctrlPoll.ascx");
            //    poll.Question = q;
            //    HtmlGenericControl div = new HtmlGenericControl("div");
            //    div.Attributes.Add("class", "article");
            //    div.Controls.Add(poll);
            //    pollPanel.Controls.Add(l1);
            //    pollPanel.Controls.Add(div);
            //    pollPanel.Controls.Add(l2);
            //} 
        }
    }
}
